ActiveAdmin.register BlockStock do

  config.sort_order = 'position_asc'

  permit_params :position, :block_id, :stock_id

  member_action :move_higher, method: :post do
    resource.move_higher
    redirect_back fallback_location: admin_block_stocks_path
  end
  
end
